﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterCar.master" AutoEventWireup="true"
    CodeFile="car-details.aspx.cs" Async="true" Inherits="car_insurance_car_details"
    MaintainScrollPositionOnPostback="true" EnableEventValidation="true" ValidateRequest="false" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/controls/usrIdNumber.ascx" TagName="usrIdNumber" TagPrefix="uc9" %>
<%@ Register Src="~/controls/usrMobilePhone.ascx" TagName="usrPhoneNo" TagPrefix="uc10" %>
<%@ Register Src="~/controls/usrGender.ascx" TagName="usrGender" TagPrefix="uc3" %>
<%@ Register Src="~/controls/usrOccupation.ascx" TagName="usrOccupation" TagPrefix="uc5" %>
<%@ Register Src="~/controls/usrDate.ascx" TagName="usrDate" TagPrefix="uc13" %>
<%@ Register Src="~/controls/usrNoJS.ascx" TagName="usrNoJS" TagPrefix="ucNoJS" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <asp:Literal runat="server" ID="litZopim" Visible="false"></asp:Literal>
    <link href="/css/popup_login.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="/css/pathbar.css" />
    <link rel="stylesheet" type="text/css" href="/css/results-a.css" />
    <link rel="stylesheet" type="text/css" href="/css/callme.css" />

    <script src="/controls/CE_Date.js" type="text/javascript"></script>

    <script src="/includes/jtip.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cpBody" runat="Server">
    <!--content start-->
    <ucNoJS:usrNoJS ID="usrNoJS1" runat="server" />
    <div id="divContent" style="display: none">
        <div class="wrapper_white ">
            <div class="vrow">
                <div class="twelve">
                    <div class="nine columns top">
                        <div class="twelve columns" style="margin-bottom: 10px;">
                            <div class="eight columns">
                                <div class="tx_title21 uppercase">
                                    <%=GetGlobalResourceObject("Menu","GetCarQuotes") %>
                                </div>
                            </div>
                            <div class="four columns" style="text-align: right;">
                                <asp:LinkButton ID="lbnLoginPopup" runat="server" OnClick="lbnLoginPopup_Click" Text="<%$ Resources:CarInsurance,LoginToQuotes%>"> </asp:LinkButton>
                            </div>
                        </div>
                        <div class="vrow top">
                            <hr />
                        </div>
                        <div class="twelve columns">
                            <div class="eight columns">
                                <%--<img width="149" height="48" alt="" src="/images/v2/icon_tick.jpg"/>--%>
                                <div class="top10">
                                    <ul id="stp_menu">
                                        <li class="stp1_r"><a id="hplStep1"><span class="active_r">
                                            <%=GetGlobalResourceObject("Menu", "StepGetQuote")%></span></a></li>
                                        <li class="stp2"><a id="hplStep2"><span class="stp_r">
                                            <%=GetGlobalResourceObject("Menu", "StepQuoteResults")%></span></a></li>
                                        <li class="stp3"><a id="hplStep3"><span class="stp_r">
                                            <%=GetGlobalResourceObject("Menu", "StepBuyOnline")%></span></a></li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div class="twelve columns top10">
                            <asp:Label ID="lblMessage" runat="server" CssClass="errorSummary"></asp:Label>
                            <asp:ValidationSummary ID="vsCarProfile" runat="server" ValidationGroup="carprofile"
                                ShowSummary="True" HeaderText="<%$ Resources:Menu,RequiredValidation%>" CssClass="errorSummary" />
                        </div>
                        <div class="twelve columns top10">
                            <div class="three columns tx_form top10">
                                <asp:Label ID="lblCarModelYear" runat="server" Text="<%$ Resources:CarInsurance,CarModelYear%>" />
                            </div>
                            <div class="four columns">
                                <asp:UpdatePanel ID="uplManYear" runat="server">
                                    <ContentTemplate>
                                        <asp:DropDownList ID="ddlManufactYear" runat="server" AutoPostBack="True" CssClass="contactDropdown"
                                            onchange="javascript:setTimeout('__doPostBack(\'ctl00$cpBody$ddlManufactYear\',\'\')', 0)"
                                            OnSelectedIndexChanged="ddlManufactYear_SelectedIndexChanged">
                                            <asp:ListItem Text="<%$ Resources:CarInsurance,Select%>" Value="-1" />
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvManufactYear"
                                            ControlToValidate="ddlManufactYear" InitialValue="-1" runat="server" ErrorMessage=""
                                            Text="" ValidationGroup="carprofile"></asp:RequiredFieldValidator>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </div>
                            <div class="twelve columns">
                                <hr />
                            </div>
                        </div>
                        <div class="twelve columns top10">
                            <div class="three columns tx_form top10">
                                <asp:Label ID="lblCarMakeModel" runat="server" Text="<%$ Resources:CarInsurance,CarMakeModel%>" />
                            </div>
                            <div class="four columns">
                                <asp:UpdatePanel ID="uplCarInfo" runat="server">
                                    <ContentTemplate>
                                        <asp:DropDownList runat="server" ID="ddlCarMake" CssClass="contactDropdown" AutoPostBack="true"
                                            onchange="javascript:setTimeout('__doPostBack(\'ctl00$cpBody$ddlCarMake\',\'\')', 0)"
                                            OnSelectedIndexChanged="ddlCarMake_SelectedIndexChanged">
                                            <asp:ListItem Text="<%$ Resources:CarInsurance,Select%>" Value="-1" />
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvCarMake" ControlToValidate="ddlCarMake"
                                            InitialValue="-1" runat="server" ErrorMessage="" Text="" ValidationGroup="carprofile"></asp:RequiredFieldValidator>
                                        <br />
                                        <br />
                                        <div id="divCarModel" style="display: none;" runat="server">
                                            <asp:DropDownList runat="server" ID="ddlModelBodyCCDoor" Width="350px" CssClass="contactDropdown"
                                                AutoPostBack="True" OnSelectedIndexChanged="ddlModelBodyCCDoor_SelectedIndexChanged">
                                                <asp:ListItem Value="-1" Text="<%$ Resources:CarInsurance,Select%>"></asp:ListItem>
                                            </asp:DropDownList>
                                            <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvModelBodyCCDoor"
                                                ControlToValidate="ddlModelBodyCCDoor" InitialValue="-1" runat="server" ErrorMessage=""
                                                Text="" ValidationGroup="carprofile"></asp:RequiredFieldValidator>
                                            <asp:Label Visible="false" runat="server" ID="lblModelDesc" />
                                        </div>
                                        <asp:Label runat="server" ID="lblCarVehicleType" Text="" Visible="false" />
                                        <div style="display: none;">
                                            <asp:Label runat="server" ID="lblSumInsured" Text="0" Visible="false" />
                                            <asp:TextBox ID="txtSumInsured" Visible="false" MaxLength="9" Width="80px" runat="server" />
                                            <asp:TextBox ID="txtNewSumInsured" Visible="false" MaxLength="9" Width="80px" runat="server" />
                                            <asp:TextBox ID="txtGroupNo" Visible="false" Text="-1" MaxLength="2" Width="30px"
                                                runat="server" />
                                        </div>
                                        <div>
                                            <%--CssClass="button_callfordiscount center" onmousedown="this.className = 'button_callfordiscount center';" onmouseup="this.className = 'button_callfordiscount center';"
                                        onmouseout="this.className = 'button_callfordiscount center';"--%>
                                            <%=GetGlobalResourceObject("CarInsurance", "RedPlateCallBack")%>
                                            <a runat="server" id="btnCallforDiscount" onserverclick="btnCallforDiscount_Click">
                                                <%=GetGlobalResourceObject("CarInsurance", "ClickHere")%></a>
                                        </div>
                                        <asp:Button ID="Button1" runat="server" Text="Button" Style="display: none;" />
                                        <cc1:ModalPopupExtender ID="mpeCallPop" runat="server" TargetControlID="Button1"
                                            PopupControlID="PanelCallMepop" BehaviorID="behCallMepop" BackgroundCssClass="modalBackground"
                                            CancelControlID="aXCallPop" DropShadow="false">
                                            <%--btnSubmit--%>
                                        </cc1:ModalPopupExtender>
                                        <asp:Panel ID="PanelCallMepop" runat="server" Style="display: none; background-color: White;
                                            -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px;">
                                            <div id="container_callme" style="height: 550px;">
                                                <div class="divXPop right">
                                                    <a id="aXCallPop" runat="server" onclick="HidePopupMsgCall();">X </a>
                                                </div>
                                                <div class="padding_30px">
                                                    <h1>
                                                        <%=GetGlobalResourceObject("CarInsurance", "CallYouBack")%></h1>
                                                    <div class="seperator">
                                                    </div>
                                                    <div style="width: 430px;">
                                                        <%=GetGlobalResourceObject("CarInsurance", "CallMeNow")%>
                                                    </div>
                                                    <div class="seperator_15px">
                                                    </div>
                                                    <!--Form  |  Starts-->
                                                    <div style="width: 430px;">
                                                    </div>
                                                    <div id="divExisting" runat="server">
                                                        <div class="form_col_1 left">
                                                            <asp:Label ID="lblExistingUser" runat="server" Text="<%$ Resources:CarInsurance,ExistingUser%>" /></div>
                                                        <div class="form_col_2 left">
                                                            <div class="form-group has-error">
                                                                <asp:RadioButton ID="rdoExistingNo" runat="server" GroupName="existinguser" Checked="true" />
                                                                <asp:Label ID="lblNo" runat="server" Text="<%$ Resources:CarInsurance,Option_No%>"></asp:Label>
                                                                &nbsp;
                                                                <asp:RadioButton ID="rdoExistingYes" runat="server" Text="" GroupName="existinguser" />
                                                                <asp:Label ID="lblYes" runat="server" Text="<%$ Resources:CarInsurance,Option_Yes%>"></asp:Label>
                                                            </div>
                                                        </div>
                                                        <br />
                                                        <br />
                                                        <div class="seperator_form">
                                                        </div>
                                                    </div>
                                                    <div>
                                                        <div class="form_col_1 comp left">
                                                            <asp:Label ID="lblFullName" runat="server" Text="<%$ Resources:CarInsurance,FullName%>" /></div>
                                                        <div class="form-group has-error">
                                                            <asp:TextBox ID="txtCallMeFullNamePop" Width="230" MaxLength="50" runat="server"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="rfvCallMeFullName" runat="server" CssClass="validationErrorControl"
                                                                ValidationGroup="callme" ErrorMessage="" Text="" ControlToValidate="txtCallMeFullNamePop"></asp:RequiredFieldValidator>
                                                            <asp:RegularExpressionValidator ID="revCallMeFullName" runat="server" ValidationGroup="callme"
                                                                ValidationExpression="^([\u0000-\uDFFF']{1,50})$|^([a-zA-Z''-'\s]{1,50})$" CssClass="validationErrorControl"
                                                                ControlToValidate="txtCallMeFullNamePop" ErrorMessage=""></asp:RegularExpressionValidator>
                                                        </div>
                                                    </div>
                                                    <div>
                                                        <div class="seperator_form">
                                                        </div>
                                                        <div>
                                                            <div class="form_col_1 comp left">
                                                                <asp:Label ID="lblEmailPop" runat="server" Text="<%$ Resources:CarInsurance,EmailAddress%>" /></div>
                                                            <div class="form-group has-error">
                                                                <asp:TextBox ID="txtEmailPop" runat="server" MaxLength="100" Width="230"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Text="" CssClass="validationErrorControl"
                                                                    ValidationGroup="callme" ErrorMessage="" ControlToValidate="txtEmailPop" Display="Dynamic"></asp:RequiredFieldValidator>
                                                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" Text="" CssClass="validationErrorControl"
                                                                    runat="server" ValidationGroup="callme" ErrorMessage="" ControlToValidate="txtEmailPop"
                                                                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"></asp:RegularExpressionValidator>
                                                            </div>
                                                        </div>
                                                        <div class="seperator_form">
                                                        </div>
                                                        <div>
                                                            <div class="form_col_1 comp left">
                                                                <asp:Label ID="lblMobileNoPop" runat="server" Text="<%$ Resources:CarInsurance,MobileNo%>" /></div>
                                                            <div class="form_col_2 left">
                                                                <div class="form-group has-error">
                                                                    <uc10:usrPhoneNo ID="usrCallMePhoneNo" ValidationGroup="callme" IsEnabled="true"
                                                                        CssClass="form-group has-error" PhoneNoErrorMessage="Mobile Phone No must be number value."
                                                                        PhoneNoValidErrorMessage="Mobile phone no is not valid." IsRequired="true" PhoneNoRequireErrorMessage="Require Mobile Phone No."
                                                                        runat="server" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <%--<div class="seperator_form">
                                            </div>--%>
                                                        <div>
                                                            <div class="form_col_1 comp left">
                                                                <%=GetGlobalResourceObject ("CarInsurance","CallMeAt") %></div>
                                                            <div class="form_col_2 left">
                                                                <asp:DropDownList CssClass="contactDropdown" Font-Size="12px" runat="server" ID="ddlCallMeTime">
                                                                    <asp:ListItem Value="-1" Text="<%$Resources:CarInsurance,Select %>" />
                                                                    <asp:ListItem Value="1" Text="<%$Resources:CarInsurance,CallMeMorning %>" />
                                                                    <asp:ListItem Value="2" Text="<%$Resources:CarInsurance,CallMeAfternoon %>" />
                                                                    <asp:ListItem Value="3" Text="<%$Resources:CarInsurance,CallMeEvening %>" />
                                                                    <asp:ListItem Value="4" Text="<%$Resources:CarInsurance,CallMeAnytime %>" />
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="rfvCallMeTime" runat="server" CssClass="validationErrorControl"
                                                                    ValidationGroup="callme" ErrorMessage="" Text="" InitialValue="-1" ControlToValidate="ddlCallMeTime"></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                        <%--<div class="seperator_form">
                                            </div>--%>
                                                        <div id="divCallMe" runat="server" visible="false">
                                                            <div class="form_col_1 left">
                                                                &nbsp;
                                                            </div>
                                                            <div class="form_col_2 left">
                                                                <asp:Label ID="lblCallMeMessage" runat="server" Font-Size="12px" ForeColor="Green"
                                                                    Font-Bold="true" Font-Names="Arial" Text="" />
                                                            </div>
                                                        </div>
                                                        <div>
                                                            <div class="form_col_1 left">
                                                                &nbsp;
                                                            </div>
                                                            <div class="form_col_2 left">
                                                                <br />
                                                                <br />
                                                                <asp:Button ID="btnSubmit" Text="<%$ Resources:HomePage,Submit%>" CssClass="button_submit"
                                                                    OnClientClick="LoadValidationErrorCss();if (Page_ClientValidate('callme')){this.removeAttribute('onmouseout');this.removeAttribute('onmouseup');this.className = 'button_processing';}"
                                                                    runat="server" ValidationGroup="callme" AlternateText="Next" ToolTip="Next" CausesValidation="true"
                                                                    OnClick="btnSubmit_Click" />
                                                            </div>
                                                        </div>
                                                        <!--Form  |  Ends-->
                                                        <div class="seperator">
                                                        </div>
                                                        <div style="width: 430px; font-size: 0.85em;">
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </div>
                            <div class="twelve columns">
                                <hr />
                            </div>
                        </div>
                        <div class="twelve columns top10">
                            <div class="three columns tx_form top10">
                                <asp:Label ID="lblCoverCommencementDate" runat="server" Text="<%$ Resources:CarInsurance,CommencementDate%>" />
                            </div>
                            <asp:UpdatePanel ID="uplCoverageComDate" runat="server">
                                <ContentTemplate>
                                    <div class="four columns">
                                        <asp:DropDownList ID="ddlCoverageComDate" runat="server" CssClass="contactDropdown">
                                        </asp:DropDownList>
                                    </div>
                                    <div class="four columns">
                                        <asp:DropDownList ID="ddlCoverageComMonth" runat="server" CssClass="contactDropdown"
                                            AutoPostBack="true" OnSelectedIndexChanged="ddlCoverageComMonth_SelectedIndexChanged">
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvCoverComDate"
                                            runat="server" InitialValue="-1" ControlToValidate="ddlCoverageComDate" ErrorMessage=""
                                            ValidationGroup="carprofile" Display="Dynamic"></asp:RequiredFieldValidator>
                                        <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvCoverComMonth"
                                            runat="server" InitialValue="-1" ControlToValidate="ddlCoverageComMonth" ErrorMessage=""
                                            ValidationGroup="carprofile" Display="Dynamic"></asp:RequiredFieldValidator>
                                    </div>
                                    <div class="one columns top right">
                                        <a runat="server" href="<%$Resources:CarInsuranceToolTips,CommencementDate%>" class="jTip"
                                            id="A1" name="<%$ Resources:CarInsurance,Help%>">
                                            <img src="/images/icon/help.png" alt="Help" width="20" height="20" /></a>
                                    </div>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                            <div class="twelve columns">
                                <hr />
                            </div>
                        </div>
                        <div class="twelve columns top10">
                            <div class="three columns tx_form top10">
                                <asp:Label ID="lblName" runat="server" Text="<%$ Resources:CarInsurance,Name%>" />
                            </div>
                            <div class="four columns">
                                <div class="form-group has-error">
                                    <asp:TextBox ID="txtName" MaxLength="50" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvName" runat="server" CssClass="validationErrorControl"
                                        ValidationGroup="carprofile" ErrorMessage="" Text="" ControlToValidate="txtName"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="revName" runat="server" ValidationGroup="carprofile"
                                        ValidationExpression="^[\p{L}\d]*[^#$%^&*():/\.'^<>]*$" CssClass="validationErrorControl"
                                        ControlToValidate="txtName" ErrorMessage=""></asp:RegularExpressionValidator>
                                </div>
                            </div>
                            <div class="four columns">
                            </div>
                            <div class="twelve columns">
                                <hr />
                            </div>
                        </div>
                        <div class="twelve columns top10">
                            <div class="three columns tx_form top10">
                                <asp:Label ID="lblEmail" runat="server" Text="<%$ Resources:CarInsurance,EmailAddress%>" />
                            </div>
                            <div class="four columns">
                                <div class="form-group has-error">
                                    <asp:UpdatePanel ID="uplConfirmEmail" runat="server">
                                        <ContentTemplate>
                                            <asp:TextBox ID="txtEmailAddress" runat="server" MaxLength="80"></asp:TextBox><br />
                                            <asp:Label ID="lblEmailSample" runat="server" CssClass="SampleText" Text="<%$ Resources:CarInsurance,EmailSample%>"></asp:Label>
                                            <asp:RequiredFieldValidator ID="rfvEmail" runat="server" Text="" CssClass="validationErrorControl"
                                                ValidationGroup="carprofile" ErrorMessage="" ControlToValidate="txtEmailAddress"
                                                Display="Dynamic"></asp:RequiredFieldValidator><br />
                                            <asp:RegularExpressionValidator ID="rfvEmailValid" Text="" CssClass="validationErrorControl"
                                                runat="server" ValidationGroup="carprofile" ErrorMessage="<%$ Resources:CarInsurance,EmailError%>"
                                                ControlToValidate="txtEmailAddress" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                                Display="Dynamic"></asp:RegularExpressionValidator>
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                </div>
                            </div>
                            <div class="four columns top">
                            </div>
                            <div class="one columns top right">
                                <a runat="server" href="<%$Resources:CarInsuranceToolTips,Email%>" class="jTip" id="A4"
                                    name="<%$ Resources:CarInsurance,Help%>">
                                    <img src="/images/icon/help.png" alt="Help" width="20" height="20" /></a></div>
                            <div class="twelve columns">
                                <hr />
                            </div>
                        </div>
                        <div class="twelve columns top10">
                            <div class="three columns tx_form top10">
                                <asp:Label ID="lblMobileNo" runat="server" Text="<%$ Resources:CarInsurance,MobileNo%>" />
                            </div>
                            <div class="four columns">
                                <div class="form-group has-error">
                                    <uc10:usrPhoneNo ID="txtMobileNo" ValidationGroup="carprofile" IsEnabled="true" PhoneNoErrorMessage="Mobile Phone No must be number value."
                                        PhoneNoValidErrorMessage="Mobile phone no is not valid." IsRequired="true" PhoneNoRequireErrorMessage="Require Mobile Phone No."
                                        runat="server" />
                                </div>
                            </div>
                            <div class="four columns top">
                            </div>
                            <div class="one columns top right">
                                <a runat="server" href="<%$Resources:CarInsuranceToolTips,Mobile%>" class="jTip"
                                    id="A5" name="<%$ Resources:CarInsurance,Help%>">
                                    <img src="/images/icon/help.png" alt="Help" width="20" height="20" /></a></div>
                            <div class="twelve columns">
                                <hr />
                            </div>
                        </div>
                        <div class="twelve columns top10">
                            <asp:CheckBox ID="checkIsAgreement" runat="server" Checked="true" />
                            <asp:Label ID="lblAgreement" runat="server" Text="<%$ Resources:CarInsurance,Agreement%>"></asp:Label>
                        </div>
                        <div class="twelve columns top10">
                            <div class="seven columns">
                            </div>
                            <div class="four columns center" id="btn_next">
                                <asp:Button ID="btnNext" Text="<%$ Resources:CarInsurance,Next%>" onmouseup="this.className = 'btn_next';"
                                    onmouseout="this.className = 'btn_next';" CssClass="btn_next" OnClientClick="OnOffObject(true);LoadValidationErrorCss();if (Page_ClientValidate('carprofile')){this.removeAttribute('onmouseout');this.removeAttribute('onmouseup');this.className = 'button_processing';}else{OnOffObject(false);}"
                                    runat="server" ValidationGroup="carprofile" ToolTip="Next" CausesValidation="true"
                                    OnClick="btnNext_Click" />
                            </div>
                            <div class="one columns top right">
                            </div>
                        </div>
                    </div>
                    <div id="divPopup">
                        <div style="margin: 0 auto; width: 266px; text-align: center; display: none;">
                            <asp:ImageButton ID="imgbtnTest" runat="server" ImageUrl="/images/button/reminder_travel_travelpack.png"
                                AlternateText="Set Travel Insurance Reminder" />
                        </div>
                        <cc1:ModalPopupExtender ID="mpePassword" runat="server" Enabled="true" TargetControlID="imgbtnTest"
                            PopupControlID="pnlPassword" BackgroundCssClass="modalBackground" DropShadow="true"
                            BehaviorID="mdlPopupPassword">
                        </cc1:ModalPopupExtender>
                        <asp:Panel ID="pnlPassword" runat="server" Style="display: none; background-color: White;"
                            DefaultButton="imgbtnLogin">
                            <asp:UpdatePanel ID="upPassword" runat="server" UpdateMode="Conditional">
                                <ContentTemplate>
                                    <div class="sr_wrapper_travel_new" style="width: 430px; padding: 20px; border: 9px solid #3b3b3b;
                                        overflow: visible; height: auto;">
                                        <div class="sr_content_travel_3">
                                            <div class="sr_form_new">
                                                <span class="tx_title21">
                                                    <asp:Label ID="lblLoginPopTitle" runat="server" Text="<%$ Resources:CarInsurance,EmailExist%>"></asp:Label>
                                                </span>
                                                <div>
                                                    <asp:Label ID="lblAccountMessage" runat="server"></asp:Label>
                                                </div>
                                                <br />
                                                <div>
                                                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="userpassword"
                                                        ShowSummary="True" CssClass="errorSummary" HeaderText="<%$Resources:Menu,RequiredField %>">
                                                    </asp:ValidationSummary>
                                                </div>
                                                <br />
                                                <div class="f_row">
                                                    <span class="form_l email_ico">
                                                        <%= GetGlobalResourceObject("Menu","EmailAddress") %></span>
                                                    <div class="f_field">
                                                        <asp:TextBox ID="txtExEmail" runat="server" Width="210px" />
                                                    </div>
                                                    <div class="f_field">
                                                        <asp:RequiredFieldValidator ID="rfvExEmail" CssClass="validationErrorControl" runat="server"
                                                            ValidationGroup="userpassword" ErrorMessage="" Text="" ControlToValidate="txtExEmail"
                                                            Display="Dynamic"></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator CssClass="validationErrorControl" ID="rfvExEmailValid"
                                                            runat="server" ValidationGroup="userpassword" ErrorMessage="" Text="" ControlToValidate="txtExEmail"
                                                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"></asp:RegularExpressionValidator>
                                                    </div>
                                                    <div class="clear">
                                                    </div>
                                                </div>
                                                <div class="f_row">
                                                    <span class="form_l name_ico">
                                                        <%= GetGlobalResourceObject("Menu","Password") %></span>
                                                    <div class="f_field">
                                                        <asp:TextBox ID="txtExAuthCode" runat="server" TextMode="Password" CssClass="form_login" />
                                                    </div>
                                                    <div class="f_field">
                                                        <asp:RequiredFieldValidator ID="rfvExAuthCode" CssClass="validationErrorControl"
                                                            runat="server" ValidationGroup="userpassword" ErrorMessage="" Text="" ControlToValidate="txtExAuthCode"
                                                            Display="Dynamic"></asp:RequiredFieldValidator>
                                                        <asp:Label runat="server" ID="lblEmailMessage" Visible="false" CssClass="validationError"></asp:Label>
                                                    </div>
                                                    <br />
                                                    <br />
                                                    <div class="f_field">
                                                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/user/passwordrecovery.aspx"
                                                            onclick="HidePopup();ShowHidePasswordPanel(true);"><%= GetGlobalResourceObject("Menu", "ForgotPassword")%></asp:HyperLink>
                                                    </div>
                                                    <div class="clear">
                                                    </div>
                                                </div>
                                                <div class="f_row">
                                                    <asp:Label ID="Label1" runat="server" CssClass="assumption"></asp:Label>
                                                </div>
                                                <div id="div1" style="display: none">
                                                    <table style="width: 100%;">
                                                        <tr>
                                                            <td align="center" valign="middle">
                                                                <img src="/images/loader/loader_main.gif" id="img1" alt="Loading" width="30" height="20" />
                                                                <span id="Span1">Please wait...</span>
                                                            </td>
                                                        </tr>
                                                        <tr align="right">
                                                            <td>
                                                                <a id="A2" href="javascript:StopSubmit();">Cancel</a>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                                <div class="f_row">
                                                    &nbsp;</div>
                                                <div class="f_row">
                                                    <asp:Label ID="Label2" Text="" Font-Size="12px" ForeColor="Green" Font-Bold="true"
                                                        Font-Names="Arial" runat="server"></asp:Label>
                                                </div>
                                                <div class="f_row sr_button">
                                                    <asp:Button ID="imgbtnLogin" runat="server" onmousedown="this.className = 'button_proceed_mousedown';"
                                                        onmouseup="this.className = 'button_proceed';" onmouseout="this.className = 'button_proceed';"
                                                        CssClass="button_proceed" OnClientClick="LoadValidationErrorCss();HideOnSubmit();if (Page_ClientValidate('userpassword')){this.removeAttribute('onmouseout');this.removeAttribute('onmouseup');this.className = 'button_processing';}"
                                                        ValidationGroup="userpassword" ToolTip="Sign in" OnClick="imgbtnLogin_Click" /><div
                                                            style="display: none;">
                                                            <input id="inputLoginCount" runat="server" value="0" />
                                                            <input id="inputHideSignal" runat="server" value="0" /><input id="inputLoginHide"
                                                                runat="server" value="0" /></div>
                                                </div>
                                            </div>
                                        </div>
                                        <div style="text-align: left; width: 100%;">
                                            <asp:Button ID="btnPasswordClose" runat="server" Text="" Width="87px" OnClick="btnPasswordClose_Click"
                                                OnClientClick="HidePopup();ShowHidePasswordPanel(true);" CssClass="button_close" />
                                        </div>
                                    </div>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </asp:Panel>
                    </div>
                    <div class="three columns top">
                        <img src="<%=GetGlobalResourceObject("ImageResource", "ServiceBank")%>" alt="" width="219"
                            height="104" />
                        <img src="<%=GetGlobalResourceObject("ImageResource", "PromotionRightUrl")%>" alt=""
                            width="219" height="424" />
                    </div>
                </div>
                <div id="divHiddenMonths" style="display: none;">
                    <input runat="server" id="lblJan" type="hidden" value="<%$ Resources:MonthResource, January%>" />
                    <input runat="server" id="lblFeb" type="hidden" value="<%$ Resources:MonthResource, February%>" />
                    <input runat="server" id="lblMar" type="hidden" value="<%$ Resources:MonthResource, March%>" />
                    <input runat="server" id="lblApr" type="hidden" value="<%$ Resources:MonthResource, April%>" />
                    <input runat="server" id="lblMay" type="hidden" value="<%$ Resources:MonthResource, May%>" />
                    <input runat="server" id="lblJun" type="hidden" value="<%$ Resources:MonthResource, June%>" />
                    <input runat="server" id="lblJul" type="hidden" value="<%$ Resources:MonthResource, July%>" />
                    <input runat="server" id="lblAug" type="hidden" value="<%$ Resources:MonthResource, August%>" />
                    <input runat="server" id="lblSep" type="hidden" value="<%$ Resources:MonthResource, September%>" />
                    <input runat="server" id="lblOct" type="hidden" value="<%$ Resources:MonthResource, October%>" />
                    <input runat="server" id="lblNov" type="hidden" value="<%$ Resources:MonthResource, November%>" />
                    <input runat="server" id="lblDec" type="hidden" value="<%$ Resources:MonthResource, December%>" />
                    <input runat="server" id="lblCultureInfo" type="hidden" />
                </div>
                <asp:HiddenField runat="server" ID="hdnURLFrom" Value="" />
            </div>
        </div>
    </div>

    <script type="text/javascript">
        Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(BeginRequest);
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequest);

        function BeginRequest(sender, e) {
            var elem = e.get_postBackElement().id;
            var target = document.getElementById("<%=btnPasswordClose.ClientID%>").id;
            if (elem != target) {
                document.getElementById("<%=ddlManufactYear.ClientID%>").disabled = true;
                document.getElementById("<%=ddlCarMake.ClientID%>").disabled = true;
                document.getElementById("<%=ddlModelBodyCCDoor.ClientID%>").disabled = true;
                document.getElementById("<%=ddlCoverageComMonth.ClientID%>").disabled = true;

                document.getElementById("<%=btnNext.ClientID%>").disabled = true;
                document.getElementById("<%=imgbtnLogin.ClientID%>").disabled = true;
            }
        }

        function EndRequest(sender, e) {
            document.getElementById("<%=btnNext.ClientID%>").disabled = false;
        }

        function OnOffObject(OnOff) {
            document.getElementById("<%=ddlManufactYear.ClientID%>").disabled = OnOff;
            document.getElementById("<%=ddlCarMake.ClientID%>").disabled = OnOff;
            document.getElementById("<%=ddlModelBodyCCDoor.ClientID%>").disabled = OnOff;
            document.getElementById("<%=ddlCoverageComMonth.ClientID%>").disabled = OnOff;

        }

        function ShowHidePasswordPanel(OnOff) {
            if (OnOff == true) {
                document.getElementById('<%=pnlPassword.ClientID%>').style.display = 'none';
            }
            else {
                document.getElementById('<%=pnlPassword.ClientID%>').style.display = '';
            }
        }

        function HideOnSubmit() {

            isHide = document.getElementById('<%=inputHideSignal.ClientID%>').value;
            if (isHide == "1") {
                HidePopup();
                ShowHidePasswordPanel(true);
            }
        }

        document.getElementById("divContent").style.display = '';

        function HidePopupMsgCall() {
            var modpop = $find("behCallMepop");

            if (!modpop) { return; }
            modpop.hide();
            return false;

        }
        function ShowPopupMsgCall() {
            var modpop = $find("behCallMepop");
            if (!modpop) { return; }
            modpop.show();
            return false;
        }
        function HidePopupMsgCall() {
            var modpop = $find("behCallMepop");

            if (!modpop) { return; }
            modpop.hide();
            return false;
        }
      

    </script>

    <script src="/includes/carinsurance/profile.js" type="text/javascript"></script>

    <script type="text/javascript">
        /* <![CDATA[ */
        var google_conversion_id = 1013678288;
        var google_custom_params = window.google_tag_params;
        var google_remarketing_only = true;
        /* ]]> */
    </script>

    <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
    </script>

    <noscript>
        <div style="display: inline;">
            <img height="1" width="1" style="border-style: none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/1013678288/?value=0&amp;guid=ON&amp;script=0" />
        </div>
    </noscript>
</asp:Content>
